﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;


namespace GUIL
{
    static class Program
    {
        static public RemoteService.Cinema selectedCinema {get; set;}

        /// <summary>
        /// The main entry point for the application.
        /// </summary>
        [STAThread]
        static void Main()
        {
            Application.EnableVisualStyles();
            
            using (var form = new LoginGUI())
            {
                var result = form.ShowDialog();
                if (result == DialogResult.OK)
                {
                    selectedCinema = form.selectedCinema;
                }
                else
                {
                    // exit here
                    Environment.Exit(1);
                }
            }

            Application.Run(new MainMenuGUI(selectedCinema));

        }
    }
}